import ResLoader from "./ResLoader";
const {ccclass, property} = cc._decorator;
@ccclass
export default class ResKeeper  extends cc.Component{
    private _loader:ResLoader = null
    get loader () {
        return this._loader
    }
    start(){
    }
    init (loader) {
        this._loader = loader
        return this
    }
    onDestroy () {
        if (this._loader) {
            this._loader.release()
            this._loader = null
        }
    }
}
